package com.xia.im.config;

import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@AllArgsConstructor
public class MvcConfig implements WebMvcConfigurer {


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(xssInterceptor).addPathPatterns("/**").excludePathPatterns("/error");
//        registry.addInterceptor(authInterceptor).addPathPatterns("/**")
//            .excludePathPatterns("/login", "/logout", "/register", "/refreshToken", "/swagger/**", "/v3/api-docs/**",
//                "/swagger-resources/**", "/swagger-ui.html", "/swagger-ui/**", "/doc.html");
    }
}
